package com.xwb.laboratory.test.spring;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Service;

@Service
public class MessageService {
    @Autowired
    private ApplicationContext act;

    public void read(String id, String status){
        Message m = new Message(id, status);
        act.publishEvent(new MessageEvent(m));
    }
}
